import request from "../request.js";

export function login(data) {
  return request({
    url: "/auth/login",
    method: "post",
    data
  });
}

export function updateUser(data) {
  return request({
    url: '/user/update',
    method: 'post',
    data
  })
}

export function queryUser(params) {
  return request({
    url: `/users/${params.uid}`,
    method: 'get'
  })
}